// 监听屏幕宽度变化
import { storeToRefs } from "pinia";
import { mainStore } from "../store/downLoadNotice"


export default function (progressPercentage:number) {
    // 实例化仓库
    const store = mainStore();
    // 解构并使数据具有响应式
    const { percentage } = storeToRefs(store);

    store.changePercentage(progressPercentage)

    return percentage
}
